import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/nextTick',
    name: 'nextTick',
    component: () => import(/* webpackChunkName: "nextTick" */ '../views/NextTickView.vue')
  },
  {
    path: '/component_test',
    name: 'component_test',
    component: () => import(/* webpackChunkName: "component_test" */ '../views/component_test.vue')
  },
  {
    path: '/todolist',
    name: 'todolist',
    component: () => import(/* webpackChunkName: "todolist" */ '../views/Todolist/index.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
